package edu.drexel.cs544.group11.fuzzing;

import java.net.ConnectException;

import edu.drexel.cs544.group11.client.protocol.ClientBSP;
import edu.drexel.cs544.group11.common.IllegalBSPStateException;

/**
 * Tests the protocol.
 * 
 * CS 544
 * 
 * @author Group 11:
 * @author Jason Setzer
 * @author Tam Thongsima
 * @author Kenny Oyefara
 * @author Chase Miller
 * 
 * @date Spring 2013
 * 
 */
public class StartFuzzing {
    
    /**
     * Starts the class.
     * 
     * @param args
     */
    public static void main(String[] args) {
	ClientBSP clientBSP = new ClientBSP(args[0]);
	try {
	    clientBSP.connect();
	    if (clientBSP.tryTransitionToCustomerSession()){
	    	System.out.println("Success!");
	    }
	    clientBSP.tryRemoveItem("12345");
	}
	catch (ConnectException | IllegalBSPStateException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	}
    }
}
